if vim.g.loaded_project_tree then
  return
end

local status_ok, lib = pcall(require, 'project_tree_lib')
if not status_ok then
  print('project_tree_lib not fount!')
  return
end

local M = {}

-- todo
function M.setup()
  vim.api.nvim_create_user_command(
    'ProjectTreeGreet',
    function()
      print(lib.greet('project_tree!'))
    end,
    { nargs = 0 }
  )
end

vim.g.loaded_project_tree = true

return M
